<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="../../../">
<head>
  <meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Matrix &mdash; SystemDS 3.3.0-dev documentation</title>
      <link rel="stylesheet" type="text/css" href="../../../static/pygments.css?v=80d5e7a1" />
      <link rel="stylesheet" type="text/css" href="../../../static/css/theme.css?v=19f00094" />

  
  <!--[if lt IE 9]>
    <script src="../../../static/js/html5shiv.min.js"></script>
  <![endif]-->
  
        <script src="../../../static/jquery.js?v=5d32c60e"></script>
        <script src="../../../static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
        <script src="../../../static/documentation_options.js?v=492a8e1f"></script>
        <script src="../../../static/doctools.js?v=9a2dae69"></script>
        <script src="../../../static/sphinx_highlight.js?v=dc90522c"></script>
    <script src="../../../static/js/theme.js"></script>
    <link rel="index" title="Index" href="../../../genindex.html" />
    <link rel="search" title="Search" href="../../../search.html" />
    <link rel="next" title="Frame" href="frame.html" />
    <link rel="prev" title="Algorithms" href="../algorithms.html" /> 
</head>

<body class="wy-body-for-nav"> 
  <div class="wy-grid-for-nav">
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >

          
          
          <a href="../../../index.html" class="icon icon-home">
            SystemDS
          </a>
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>
        </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
              <p class="caption" role="heading"><span class="caption-text">Getting Started:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../getting_started/install.html">Install SystemDS</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../getting_started/simple_examples.html">QuickStart</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Guides</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../guide/federated.html">Federated Environment</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guide/algorithms_basics.html">Built-in Algorithms</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guide/python_end_to_end_tut.html">Python end-to-end tutorial</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">API</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../context/systemds_context.html">SystemDSContext</a></li>
<li class="toctree-l1"><a class="reference internal" href="../algorithms.html">Algorithms</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Matrix</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#systemds.operator.Matrix"><code class="docutils literal notranslate"><span class="pre">Matrix</span></code></a><ul>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.__init__"><code class="docutils literal notranslate"><span class="pre">Matrix.__init__()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.abs"><code class="docutils literal notranslate"><span class="pre">Matrix.abs()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.acos"><code class="docutils literal notranslate"><span class="pre">Matrix.acos()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.argmax"><code class="docutils literal notranslate"><span class="pre">Matrix.argmax()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.argmin"><code class="docutils literal notranslate"><span class="pre">Matrix.argmin()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.asin"><code class="docutils literal notranslate"><span class="pre">Matrix.asin()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.atan"><code class="docutils literal notranslate"><span class="pre">Matrix.atan()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.cbind"><code class="docutils literal notranslate"><span class="pre">Matrix.cbind()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.ceil"><code class="docutils literal notranslate"><span class="pre">Matrix.ceil()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.cholesky"><code class="docutils literal notranslate"><span class="pre">Matrix.cholesky()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.code_line"><code class="docutils literal notranslate"><span class="pre">Matrix.code_line()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.compute"><code class="docutils literal notranslate"><span class="pre">Matrix.compute()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.cos"><code class="docutils literal notranslate"><span class="pre">Matrix.cos()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.cosh"><code class="docutils literal notranslate"><span class="pre">Matrix.cosh()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.countDistinct"><code class="docutils literal notranslate"><span class="pre">Matrix.countDistinct()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.countDistinctApprox"><code class="docutils literal notranslate"><span class="pre">Matrix.countDistinctApprox()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.cummax"><code class="docutils literal notranslate"><span class="pre">Matrix.cummax()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.cummin"><code class="docutils literal notranslate"><span class="pre">Matrix.cummin()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.cumprod"><code class="docutils literal notranslate"><span class="pre">Matrix.cumprod()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.cumsum"><code class="docutils literal notranslate"><span class="pre">Matrix.cumsum()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.cumsumprod"><code class="docutils literal notranslate"><span class="pre">Matrix.cumsumprod()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.diag"><code class="docutils literal notranslate"><span class="pre">Matrix.diag()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.eigen"><code class="docutils literal notranslate"><span class="pre">Matrix.eigen()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.exp"><code class="docutils literal notranslate"><span class="pre">Matrix.exp()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.fft"><code class="docutils literal notranslate"><span class="pre">Matrix.fft()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.floor"><code class="docutils literal notranslate"><span class="pre">Matrix.floor()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.ifft"><code class="docutils literal notranslate"><span class="pre">Matrix.ifft()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.inv"><code class="docutils literal notranslate"><span class="pre">Matrix.inv()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.isInf"><code class="docutils literal notranslate"><span class="pre">Matrix.isInf()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.isNA"><code class="docutils literal notranslate"><span class="pre">Matrix.isNA()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.isNaN"><code class="docutils literal notranslate"><span class="pre">Matrix.isNaN()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.log"><code class="docutils literal notranslate"><span class="pre">Matrix.log()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.lu"><code class="docutils literal notranslate"><span class="pre">Matrix.lu()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.max"><code class="docutils literal notranslate"><span class="pre">Matrix.max()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.mean"><code class="docutils literal notranslate"><span class="pre">Matrix.mean()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.median"><code class="docutils literal notranslate"><span class="pre">Matrix.median()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.min"><code class="docutils literal notranslate"><span class="pre">Matrix.min()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.order"><code class="docutils literal notranslate"><span class="pre">Matrix.order()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.pass_python_data_to_prepared_script"><code class="docutils literal notranslate"><span class="pre">Matrix.pass_python_data_to_prepared_script()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.prod"><code class="docutils literal notranslate"><span class="pre">Matrix.prod()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.qr"><code class="docutils literal notranslate"><span class="pre">Matrix.qr()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.quantile"><code class="docutils literal notranslate"><span class="pre">Matrix.quantile()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.rbind"><code class="docutils literal notranslate"><span class="pre">Matrix.rbind()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.replace"><code class="docutils literal notranslate"><span class="pre">Matrix.replace()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.reshape"><code class="docutils literal notranslate"><span class="pre">Matrix.reshape()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.rev"><code class="docutils literal notranslate"><span class="pre">Matrix.rev()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.roll"><code class="docutils literal notranslate"><span class="pre">Matrix.roll()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.round"><code class="docutils literal notranslate"><span class="pre">Matrix.round()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.sd"><code class="docutils literal notranslate"><span class="pre">Matrix.sd()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.sign"><code class="docutils literal notranslate"><span class="pre">Matrix.sign()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.sin"><code class="docutils literal notranslate"><span class="pre">Matrix.sin()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.sinh"><code class="docutils literal notranslate"><span class="pre">Matrix.sinh()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.sqrt"><code class="docutils literal notranslate"><span class="pre">Matrix.sqrt()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.sum"><code class="docutils literal notranslate"><span class="pre">Matrix.sum()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.svd"><code class="docutils literal notranslate"><span class="pre">Matrix.svd()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.t"><code class="docutils literal notranslate"><span class="pre">Matrix.t()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.tan"><code class="docutils literal notranslate"><span class="pre">Matrix.tan()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.tanh"><code class="docutils literal notranslate"><span class="pre">Matrix.tanh()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.to_one_hot"><code class="docutils literal notranslate"><span class="pre">Matrix.to_one_hot()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.to_string"><code class="docutils literal notranslate"><span class="pre">Matrix.to_string()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.trace"><code class="docutils literal notranslate"><span class="pre">Matrix.trace()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.tril"><code class="docutils literal notranslate"><span class="pre">Matrix.tril()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.triu"><code class="docutils literal notranslate"><span class="pre">Matrix.triu()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.unique"><code class="docutils literal notranslate"><span class="pre">Matrix.unique()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#systemds.operator.Matrix.var"><code class="docutils literal notranslate"><span class="pre">Matrix.var()</span></code></a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="frame.html">Frame</a></li>
<li class="toctree-l1"><a class="reference internal" href="list.html">List</a></li>
<li class="toctree-l1"><a class="reference internal" href="scalar.html">Scalar</a></li>
<li class="toctree-l1"><a class="reference internal" href="source.html">Source</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Internals API</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../operation_node.html">Operation Node</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../script_building/dag.html">Dag</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../script_building/script.html">Script</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../utils/converters.html">Converters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../utils/helpers.html">Helpers</a></li>
</ul>

        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../../index.html">SystemDS</a>
      </nav>

      <div class="wy-nav-content">
        <div class="rst-content">
          <div role="navigation" aria-label="Page navigation">
  <ul class="wy-breadcrumbs">
      <li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
      <li class="breadcrumb-item active">Matrix</li>
      <li class="wy-breadcrumbs-aside">
            <a href="../../../sources/api/operator/node/matrix.rst.txt" rel="nofollow"> View page source</a>
      </li>
  </ul>
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
             
  <section id="matrix">
<h1>Matrix<a class="headerlink" href="#matrix" title="Link to this heading"></a></h1>
<p>A <code class="docutils literal notranslate"><span class="pre">Matrix</span></code> is represented either by an <code class="docutils literal notranslate"><span class="pre">OperationNode</span></code>, or the derived class <code class="docutils literal notranslate"><span class="pre">Matrix</span></code>.
Matrices are the most fundamental objects SystemDS operates on.</p>
<p>Although it is possible to generate matrices with the function calls or object construction specified below,
the recommended way is to use the methods defined on <code class="docutils literal notranslate"><span class="pre">SystemDSContext</span></code>.</p>
<dl class="py class">
<dt class="sig sig-object py" id="systemds.operator.Matrix">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">systemds.operator.</span></span><span class="sig-name descname"><span class="pre">Matrix</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sds_context</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">operation</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">unnamed_input_nodes</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">Iterable</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="../../script_building/dag.html#systemds.script_building.dag.DAGNode" title="systemds.script_building.dag.DAGNode"><span class="pre">DAGNode</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">float</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">bool</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">named_input_nodes</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><a class="reference internal" href="../../script_building/dag.html#systemds.script_building.dag.DAGNode" title="systemds.script_building.dag.DAGNode"><span class="pre">DAGNode</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">float</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">bool</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">local_data</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">array</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">brackets</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#systemds.operator.Matrix" title="Link to this definition"></a></dt>
<dd><dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.__init__">
<span class="sig-name descname"><span class="pre">__init__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sds_context</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">operation</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">unnamed_input_nodes</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">Iterable</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="../../script_building/dag.html#systemds.script_building.dag.DAGNode" title="systemds.script_building.dag.DAGNode"><span class="pre">DAGNode</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">float</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">bool</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">named_input_nodes</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><a class="reference internal" href="../../script_building/dag.html#systemds.script_building.dag.DAGNode" title="systemds.script_building.dag.DAGNode"><span class="pre">DAGNode</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">float</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">bool</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">local_data</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">array</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">brackets</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.__init__" title="Link to this definition"></a></dt>
<dd><p>Create general <cite>OperationNode</cite></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>sds_context</strong> – The SystemDS context for performing the operations</p></li>
<li><p><strong>operation</strong> – The name of the DML function to execute</p></li>
<li><p><strong>unnamed_input_nodes</strong> – inputs identified by their position, not name</p></li>
<li><p><strong>named_input_nodes</strong> – inputs with their respective parameter name</p></li>
<li><p><strong>is_python_local_data</strong> – if the data is local in python e.g. Numpy arrays
that this operation node returns multiple values. If set remember to set the output_types value as well.</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.abs">
<span class="sig-name descname"><span class="pre">abs</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.abs" title="Link to this definition"></a></dt>
<dd><p>Calculate absolute.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.acos">
<span class="sig-name descname"><span class="pre">acos</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.acos" title="Link to this definition"></a></dt>
<dd><p>Calculate arccos.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.argmax">
<span class="sig-name descname"><span class="pre">argmax</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.argmax" title="Link to this definition"></a></dt>
<dd><p>Return the index of the maximum if axis is None or a column vector for row-wise / column-wise maxima
computation.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>axis</strong> – can be 0 or 1 to do either row or column sums</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite> representing operation for row / columns or ‘Scalar’ representing operation for complete</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.argmin">
<span class="sig-name descname"><span class="pre">argmin</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.argmin" title="Link to this definition"></a></dt>
<dd><p>Return the index of the minimum if axis is None or a column vector for row-wise / column-wise minima
computation.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>axis</strong> – can be 0 or 1 to do either row or column sums</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite> representing operation for row / columns or ‘Scalar’ representing operation for complete</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.asin">
<span class="sig-name descname"><span class="pre">asin</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.asin" title="Link to this definition"></a></dt>
<dd><p>Calculate arcsin.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.atan">
<span class="sig-name descname"><span class="pre">atan</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.atan" title="Link to this definition"></a></dt>
<dd><p>Calculate arctan.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.cbind">
<span class="sig-name descname"><span class="pre">cbind</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">other</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.cbind" title="Link to this definition"></a></dt>
<dd><p>Column-wise matrix concatenation, by concatenating the second matrix as additional columns to the first matrix.
:param: The other matrix to bind to the right hand side.
:return: The OperationNode containing the concatenated matrices/frames.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.ceil">
<span class="sig-name descname"><span class="pre">ceil</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.ceil" title="Link to this definition"></a></dt>
<dd><p>Return the ceiling of the input, element-wise.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.cholesky">
<span class="sig-name descname"><span class="pre">cholesky</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">safe</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.cholesky" title="Link to this definition"></a></dt>
<dd><p>Computes the Cholesky decomposition of a symmetric, positive definite matrix</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>safe</strong> – default value is False, if flag is True additional checks to ensure
that the matrix is symmetric positive definite are applied, if False, checks will be skipped</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>the OperationNode representing this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.code_line">
<span class="sig-name descname"><span class="pre">code_line</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">var_name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">unnamed_input_vars</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Sequence</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></em>, <em class="sig-param"><span class="n"><span class="pre">named_input_vars</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">str</span></span></span><a class="headerlink" href="#systemds.operator.Matrix.code_line" title="Link to this definition"></a></dt>
<dd><p>Generates the DML code line equal to the intended action of this node.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>var_name</strong> – Name of DML-variable this nodes result should be saved in</p></li>
<li><p><strong>unnamed_input_vars</strong> – all strings representing the unnamed parameters</p></li>
<li><p><strong>named_input_vars</strong> – all strings representing the named parameters (name value pairs)</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>the DML code line that is equal to this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.compute">
<span class="sig-name descname"><span class="pre">compute</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">verbose</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">lineage</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">array</span></span></span><a class="headerlink" href="#systemds.operator.Matrix.compute" title="Link to this definition"></a></dt>
<dd><p>Get result of this operation. Builds the dml script and executes it in SystemDS, before this method is called
all operations are only building the DAG without actually executing (lazy evaluation).</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>verbose</strong> – Can be activated to print additional information such as created DML-Script</p></li>
<li><p><strong>lineage</strong> – Can be activated to print lineage trace till this node</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>the output as an python builtin data type or numpy array</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.cos">
<span class="sig-name descname"><span class="pre">cos</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.cos" title="Link to this definition"></a></dt>
<dd><p>Calculate cos.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.cosh">
<span class="sig-name descname"><span class="pre">cosh</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.cosh" title="Link to this definition"></a></dt>
<dd><p>Calculate cos.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.countDistinct">
<span class="sig-name descname"><span class="pre">countDistinct</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.countDistinct" title="Link to this definition"></a></dt>
<dd><p>Calculate the number of distinct values of matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>axis</strong> – can be 0 or 1 to do either row or column aggregation</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>OperationNode</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.countDistinctApprox">
<span class="sig-name descname"><span class="pre">countDistinctApprox</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.countDistinctApprox" title="Link to this definition"></a></dt>
<dd><p>Calculate the approximate number of distinct values of matrix.
:param axis: can be 0 or 1 to do either row or column aggregation
:return: <cite>OperationNode</cite> representing operation</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.cummax">
<span class="sig-name descname"><span class="pre">cummax</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.cummax" title="Link to this definition"></a></dt>
<dd><p>Column prefix-max. (For row-prefix max, use X.t().cummax().t())</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The Matrix representing the result of this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.cummin">
<span class="sig-name descname"><span class="pre">cummin</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.cummin" title="Link to this definition"></a></dt>
<dd><p>Column prefix-min. (For row-prefix min, use X.t().cummin().t())</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The Matrix representing the result of this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.cumprod">
<span class="sig-name descname"><span class="pre">cumprod</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.cumprod" title="Link to this definition"></a></dt>
<dd><p>Column prefix-product. (For row-prefix prod, use X.t().cumprod().t())</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The Matrix representing the result of this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.cumsum">
<span class="sig-name descname"><span class="pre">cumsum</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.cumsum" title="Link to this definition"></a></dt>
<dd><p>Column prefix-sum. (For row-prefix sum, use X.t().cumsum().t())</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The Matrix representing the result of this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.cumsumprod">
<span class="sig-name descname"><span class="pre">cumsumprod</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.cumsumprod" title="Link to this definition"></a></dt>
<dd><p>Column prefix-sumprod of an 2-column matrix:
Y = X.comsumprod(),
where Y[i,1] = X[i,1] + X[i,2]*Y[i-1,1] for i in [1,2, .., nrow(X)]
The aggregator is initialized with 0 (Y[0,1] = 0)</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The Matrix representing the result of this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.diag">
<span class="sig-name descname"><span class="pre">diag</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.diag" title="Link to this definition"></a></dt>
<dd><p>Create diagonal matrix from (n x 1) matrix, or take diagonal from square matrix</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>the OperationNode representing this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.eigen">
<span class="sig-name descname"><span class="pre">eigen</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.eigen" title="Link to this definition"></a></dt>
<dd><p>Computes Eigen decomposition of input matrix A. The Eigen decomposition consists of
two matrices V and w such that A = V %*% diag(w) %*% t(V). The columns of V are the
eigenvectors of the original matrix A. And, the eigen values are given by w.
It is important to note that this function can operate only on small-to-medium sized
input matrix that can fit in the main memory. For larger matrices, an out-of-memory
exception is raised.</p>
<p>This function returns two matrices w and V, where w is (m x 1) and V is of size (m x m).</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The MultiReturn node containing the two Matrices w and V</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.exp">
<span class="sig-name descname"><span class="pre">exp</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.exp" title="Link to this definition"></a></dt>
<dd><p>Calculate exponential.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.fft">
<span class="sig-name descname"><span class="pre">fft</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">MultiReturn</span></span></span><a class="headerlink" href="#systemds.operator.Matrix.fft" title="Link to this definition"></a></dt>
<dd><p>Performs the Fast Fourier Transform (FFT) on the matrix.
:return: A MultiReturn object representing the real and imaginary parts of the FFT output.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.floor">
<span class="sig-name descname"><span class="pre">floor</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.floor" title="Link to this definition"></a></dt>
<dd><p>Return the floor of the input, element-wise.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.ifft">
<span class="sig-name descname"><span class="pre">ifft</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">imag_input</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">MultiReturn</span></span></span><a class="headerlink" href="#systemds.operator.Matrix.ifft" title="Link to this definition"></a></dt>
<dd><p>Performs the Inverse Fast Fourier Transform (IFFT) on a complex matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>imag_input</strong> – The imaginary part of the input matrix (optional).</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>A MultiReturn object representing the real and imaginary parts of the IFFT output.</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.inv">
<span class="sig-name descname"><span class="pre">inv</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.inv" title="Link to this definition"></a></dt>
<dd><p>Computes the inverse of a squared matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The Matrix representing the result of this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.isInf">
<span class="sig-name descname"><span class="pre">isInf</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.isInf" title="Link to this definition"></a></dt>
<dd><p>Computes a boolean indicator matrix of the same shape as the input, indicating where Inf (positive or
negative infinity) values are located.
:return: the OperationNode representing this operation</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.isNA">
<span class="sig-name descname"><span class="pre">isNA</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.isNA" title="Link to this definition"></a></dt>
<dd><p>Computes a boolean indicator matrix of the same shape as the input, indicating where NA (not available)
values are located. Currently, NA is only capturing NaN values.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>the OperationNode representing this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.isNaN">
<span class="sig-name descname"><span class="pre">isNaN</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.isNaN" title="Link to this definition"></a></dt>
<dd><p>Computes a boolean indicator matrix of the same shape as the input, indicating where NaN (not a number)
values are located.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>the OperationNode representing this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.log">
<span class="sig-name descname"><span class="pre">log</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.log" title="Link to this definition"></a></dt>
<dd><p>Calculate logarithm.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.lu">
<span class="sig-name descname"><span class="pre">lu</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">MultiReturn</span></span></span><a class="headerlink" href="#systemds.operator.Matrix.lu" title="Link to this definition"></a></dt>
<dd><p>Computes Pivoted LU decomposition a square matrix A. The LU decomposition consists
of three matrices P, L, and U such that P %*% A = L %*% U, where P is a permutation matrix that is used to
rearrange the rows in A before the decomposition can be computed. L is a lower-triangular matrix whereas U is
an upper-triangular matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The MultiReturn node containing the three Matrices p, l and u</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.max">
<span class="sig-name descname"><span class="pre">max</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.max" title="Link to this definition"></a></dt>
<dd><p>Calculate max of matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>axis</strong> – can be 0 or 1 to do either row or column aggregation</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.mean">
<span class="sig-name descname"><span class="pre">mean</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.mean" title="Link to this definition"></a></dt>
<dd><p>Calculate mean of matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>axis</strong> – can be 0 or 1 to do either row or column means</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.median">
<span class="sig-name descname"><span class="pre">median</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">weights</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="scalar.html#systemds.operator.Scalar" title="systemds.operator.nodes.scalar.Scalar"><span class="pre">Scalar</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.median" title="Link to this definition"></a></dt>
<dd><p>Calculate median of a column matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Scalar</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.min">
<span class="sig-name descname"><span class="pre">min</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.min" title="Link to this definition"></a></dt>
<dd><p>Calculate max of matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>axis</strong> – can be 0 or 1 to do either row or column aggregation</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.order">
<span class="sig-name descname"><span class="pre">order</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">by</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">decreasing</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">index_return</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.order" title="Link to this definition"></a></dt>
<dd><p>Sort by a column of the matrix X in increasing/decreasing order and returns either the index or data</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>by</strong> – sort matrix by this column number</p></li>
<li><p><strong>decreasing</strong> – If true the matrix will be sorted in decreasing order</p></li>
<li><p><strong>index_return</strong> – If true, the index numbers will be returned</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>the OperationNode representing this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.pass_python_data_to_prepared_script">
<span class="sig-name descname"><span class="pre">pass_python_data_to_prepared_script</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sds</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">var_name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">prepared_script</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">JavaObject</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#systemds.operator.Matrix.pass_python_data_to_prepared_script" title="Link to this definition"></a></dt>
<dd><p>Passes data from python to the prepared script object.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>jvm</strong> – the java virtual machine object</p></li>
<li><p><strong>var_name</strong> – the variable name the data should get in java</p></li>
<li><p><strong>prepared_script</strong> – the prepared script</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.prod">
<span class="sig-name descname"><span class="pre">prod</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.prod" title="Link to this definition"></a></dt>
<dd><p>Calculate product of cells in matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>axis</strong> – can be 0 or 1 to do either row or column sums</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.qr">
<span class="sig-name descname"><span class="pre">qr</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">MultiReturn</span></span></span><a class="headerlink" href="#systemds.operator.Matrix.qr" title="Link to this definition"></a></dt>
<dd><p>Computes QR decomposition of a matrix A using Householder reflectors. The QR decomposition of A consists
of two matrices Q and R such that A = Q%*%R where Q is an orthogonal matrix (i.e., Q%*%t(Q) = t(Q)%*%Q = I,
identity matrix) and R is an upper triangular matrix. For efficiency purposes, this function returns the matrix
of Householder reflector vectors H instead of Q (which is a large m x m potentially dense matrix). The Q
matrix can be explicitly computed from H, if needed. In most applications of QR, one is interested in
calculating Q %*% B or t(Q) %*% B – and, both can be computed directly using H instead of explicitly
constructing the large Q matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The MultiReturn node containing the two Matrices h and r</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.quantile">
<span class="sig-name descname"><span class="pre">quantile</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">p</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">weights</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.quantile" title="Link to this definition"></a></dt>
<dd><p>Returns a column matrix with list of all quantiles requested in P.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>p</strong> – float for a single quantile or column matrix of requested quantiles</p></li>
<li><p><strong>weights</strong> – (optional) weights matrix of the same shape as self</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite> or ‘Scalar’ representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.rbind">
<span class="sig-name descname"><span class="pre">rbind</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">other</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.rbind" title="Link to this definition"></a></dt>
<dd><p>Row-wise matrix concatenation, by concatenating the second matrix as additional rows to the first matrix.
:param: The other matrix to bind to the right hand side
:return: The OperationNode containing the concatenated matrices/frames.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.replace">
<span class="sig-name descname"><span class="pre">replace</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">pattern</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="../../script_building/dag.html#systemds.script_building.dag.DAGNode" title="systemds.script_building.dag.DAGNode"><span class="pre">DAGNode</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">float</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">bool</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">replacement</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="../../script_building/dag.html#systemds.script_building.dag.DAGNode" title="systemds.script_building.dag.DAGNode"><span class="pre">DAGNode</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">float</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">bool</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.replace" title="Link to this definition"></a></dt>
<dd><p>Replace all values with replacement value</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.reshape">
<span class="sig-name descname"><span class="pre">reshape</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">rows</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cols</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">1</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#systemds.operator.Matrix.reshape" title="Link to this definition"></a></dt>
<dd><p>Gives a new shape to a matrix without changing its data.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>rows</strong> – number of rows</p></li>
<li><p><strong>cols</strong> – number of columns, defaults to 1</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.rev">
<span class="sig-name descname"><span class="pre">rev</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.rev" title="Link to this definition"></a></dt>
<dd><p>Reverses the rows</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>the OperationNode representing this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.roll">
<span class="sig-name descname"><span class="pre">roll</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shift</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.roll" title="Link to this definition"></a></dt>
<dd><p>Reverses the rows</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>the OperationNode representing this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.round">
<span class="sig-name descname"><span class="pre">round</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.round" title="Link to this definition"></a></dt>
<dd><p>round all values to nearest natural number</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The Matrix representing the result of this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.sd">
<span class="sig-name descname"><span class="pre">sd</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="scalar.html#systemds.operator.Scalar" title="systemds.operator.nodes.scalar.Scalar"><span class="pre">Scalar</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.sd" title="Link to this definition"></a></dt>
<dd><p>Calculate standard deviation of matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Scalar</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.sign">
<span class="sig-name descname"><span class="pre">sign</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.sign" title="Link to this definition"></a></dt>
<dd><p>Returns a matrix representing the signs of the input matrix elements,
where 1 represents positive, 0 represents zero, and -1 represents negative.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.sin">
<span class="sig-name descname"><span class="pre">sin</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.sin" title="Link to this definition"></a></dt>
<dd><p>Calculate sin.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.sinh">
<span class="sig-name descname"><span class="pre">sinh</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.sinh" title="Link to this definition"></a></dt>
<dd><p>Calculate sin.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.sqrt">
<span class="sig-name descname"><span class="pre">sqrt</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.sqrt" title="Link to this definition"></a></dt>
<dd><p>Calculate square root.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.sum">
<span class="sig-name descname"><span class="pre">sum</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.sum" title="Link to this definition"></a></dt>
<dd><p>Calculate sum of matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>axis</strong> – can be 0 or 1 to do either row or column sums</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.svd">
<span class="sig-name descname"><span class="pre">svd</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.svd" title="Link to this definition"></a></dt>
<dd><p>Singular Value Decomposition of a matrix A (of size m x m), which decomposes into three matrices
U, V, and S as A = U %% S %% t(V), where U is an m x m unitary matrix (i.e., orthogonal),
V is an n x n unitary matrix (also orthogonal),
and S is an m x n matrix with non-negative real numbers on the diagonal.</p>
<p>matrices U &lt;(m x m)&gt;, S &lt;(m x n)&gt;, and V &lt;(n x n)&gt;</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The MultiReturn node containing the three Matrices U,S, and V</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.t">
<span class="sig-name descname"><span class="pre">t</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.t" title="Link to this definition"></a></dt>
<dd><p>Transposes the input</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>the OperationNode representing this operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.tan">
<span class="sig-name descname"><span class="pre">tan</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.tan" title="Link to this definition"></a></dt>
<dd><p>Calculate tan.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.tanh">
<span class="sig-name descname"><span class="pre">tanh</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.tanh" title="Link to this definition"></a></dt>
<dd><p>Calculate tan.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.to_one_hot">
<span class="sig-name descname"><span class="pre">to_one_hot</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">num_classes</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.to_one_hot" title="Link to this definition"></a></dt>
<dd><p>OneHot encode the matrix.</p>
<p>It is assumed that there is only one column to encode, and all values are whole numbers &gt; 0</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>num_classes</strong> – The number of classes to encode into. max value contained in the matrix must be &lt;= num_classes</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>The OperationNode containing the oneHotEncoded values</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.to_string">
<span class="sig-name descname"><span class="pre">to_string</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><a class="reference internal" href="../../script_building/dag.html#systemds.script_building.dag.DAGNode" title="systemds.script_building.dag.DAGNode"><span class="pre">DAGNode</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">float</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">bool</span><span class="p"><span class="pre">]</span></span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="scalar.html#systemds.operator.Scalar" title="systemds.operator.Scalar"><span class="pre">Scalar</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.to_string" title="Link to this definition"></a></dt>
<dd><p>Converts the input to a string representation.
:return: <cite>Scalar</cite> containing the string.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.trace">
<span class="sig-name descname"><span class="pre">trace</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="scalar.html#systemds.operator.Scalar" title="systemds.operator.nodes.scalar.Scalar"><span class="pre">Scalar</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.trace" title="Link to this definition"></a></dt>
<dd><p>Calculate trace.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p><cite>Scalar</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.tril">
<span class="sig-name descname"><span class="pre">tril</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">include_diagonal</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">return_values</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.tril" title="Link to this definition"></a></dt>
<dd><p>Selects the lower triangular part of a matrix, configurable to include the diagonal and return values or ones</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>include_diagonal</strong> – boolean, default True</p></li>
<li><p><strong>return_values</strong> – boolean, default True, if set to False returns ones</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.triu">
<span class="sig-name descname"><span class="pre">triu</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">include_diagonal</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">return_values</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.triu" title="Link to this definition"></a></dt>
<dd><p>Selects the upper triangular part of a matrix, configurable to include the diagonal and return values or ones</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>include_diagonal</strong> – boolean, default True</p></li>
<li><p><strong>return_values</strong> – boolean, default True, if set to False returns ones</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.unique">
<span class="sig-name descname"><span class="pre">unique</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#systemds.operator.Matrix" title="systemds.operator.nodes.matrix.Matrix"><span class="pre">Matrix</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.unique" title="Link to this definition"></a></dt>
<dd><p>Returns the unique values for the complete matrix, for each row or for each column.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>axis</strong> – can be 0 or 1 to do either row or column uniques</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>Matrix</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="systemds.operator.Matrix.var">
<span class="sig-name descname"><span class="pre">var</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">axis</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../operation_node.html#systemds.operator.OperationNode" title="systemds.operator.operation_node.OperationNode"><span class="pre">OperationNode</span></a></span></span><a class="headerlink" href="#systemds.operator.Matrix.var" title="Link to this definition"></a></dt>
<dd><p>Calculate variance of matrix.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>axis</strong> – can be 0 or 1 to do either row or column vars</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><cite>OperationNode</cite> representing operation</p>
</dd>
</dl>
</dd></dl>

</dd></dl>

</section>


           </div>
          </div>
          <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
        <a href="../algorithms.html" class="btn btn-neutral float-left" title="Algorithms" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
        <a href="frame.html" class="btn btn-neutral float-right" title="Frame" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>&#169; Copyright 2024, Apache SystemDS.</p>
  </div>

  Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
    <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
    provided by <a href="https://readthedocs.org">Read the Docs</a>.
   

</footer>
        </div>
      </div>
    </section>
  </div>
  <script>
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>